﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Vit.Common.Models;
using Vit.Web.Models;

namespace Vit.Mvc.Models
{
    [MetadataType(typeof(PortalMetadata))]
    public partial class Portal : IPortal, IModifiedTrackable
    {
        #region IPortal Members


        ITheme IPortal.DefaultTheme
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        ILocale IPortal.DefaultLocale
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        IEnumerable<IWebSite> IPortal.WebSites
        {
            get
            {
                throw new NotImplementedException();
            }
        }

        #endregion

        #region IModifiedTrackable Members

        public IUser CreatedByUser
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IUser LastModifiedByUser
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        #endregion

        #region IKey Members

        public object Key
        {
            get
            {
                return this.PortalID;
            }
            set
            {
                if (value is Guid)
                {
                    this.PortalID = (Guid)value;
                }
            }
        }

        #endregion
    }
}
